/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wisnu.spms.source;

import com.wisnu.spms.service.entity.DbEmployee;

/**
 *
 * @author Wisnu Wardoyo
 */
public class Employee {

    private static DbEmployee employee;

    private Employee() {

    }

    public static void setEmployee(DbEmployee employee) {
        Employee.employee = employee;
    }

    public static DbEmployee getEmployee() {
        return employee;
    }

    public static Employee getInstance() {
        return EmployeeHolder.INSTANCE;
    }

    private static class EmployeeHolder {

        private static final Employee INSTANCE = new Employee();
    }
    
}
